
test: test.o liblog.so
	gcc -g test.o -o test -lpthread -L. -llog -Wl,-rpath=.

test.o: test.c
	gcc -g -c test.c -o test.o

liblog.so: log.c log.h
	gcc -g -fPIC --share log.c -o liblog.so

.PHONY: clean
clean:
	rm test.o
	rm liblog.so
	rm test
